<layout name="layout" />

<div class="main-div">
    <form name="main_form" method="POST" action="__SELF__" enctype="multipart/form-data" >
    	<input type="hidden" name="id" value="<?php echo $data['id']; ?>" />
		<input type="hidden" name="old_face" value="<?php echo $data['face']; ?>" />
		<input type="hidden" name="old_big_face" value="<?php echo $data['big_face']; ?>" />
		<input type="hidden" name="old_mid_face" value="<?php echo $data['mid_face']; ?>" />
		<input type="hidden" name="old_sm_face" value="<?php echo $data['sm_face']; ?>" />
        <table cellspacing="1" cellpadding="3" width="100%">
            <tr>
                <td class="label">会员编号：</td>
                <td>
                    <input  type="text" name="code" value="<?php echo $data['code']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">姓名：</td>
                <td>
                    <input  type="text" name="username" value="<?php echo $data['username']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">性别：</td>
                <td>
                    <input  type="text" name="sex" value="<?php echo $data['sex']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">手机：</td>
                <td>
                    <input  type="text" name="telphone" value="<?php echo $data['telphone']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">头像：</td>
                <td>
                	<input type="file" name="face" /><br /> 
                	<?php showImage($data['sm_face'], 100); ?>                </td>
            </tr>
            <tr>
                <td class="label">积分：</td>
                <td>
                    <input  type="text" name="jifen" value="<?php echo $data['jifen']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">级别：</td>
                <td>
                    <input  type="text" name="level" value="<?php echo $data['level']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">状态：</td>
                <td>
                    <input  type="text" name="status" value="<?php echo $data['status']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">卡号：</td>
                <td>
                    <input  type="text" name="kahao" value="<?php echo $data['kahao']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">卡项：</td>
                <td>
                    {:buildSelect('card','card_id','id','alias',$data['card_id']);}
                </td>
            </tr>
            <tr>
                <td class="label">选课数：</td>
                <td>
                    <input  type="text" name="class_count" value="<?php echo $data['class_count']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">分类：</td>
                <td>
                    <input  type="text" name="member_cat" value="<?php echo $data['member_cat']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">专修：</td>
                <td>
                    <input  type="text" name="member_hobby" value="<?php echo $data['member_hobby']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">员工：</td>
                <td>
                    <input  type="text" name="work_man" value="<?php echo $data['work_man']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">介绍人：</td>
                <td>
                    <input  type="text" name="intro_man" value="<?php echo $data['intro_man']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">余额：</td>
                <td>
                    <input  type="text" name="member_account" value="<?php echo $data['member_account']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">折扣：</td>
                <td>
                    <input  type="text" name="member_zk" value="<?php echo $data['member_zk']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">总次数：</td>
                <td>
                    <input  type="text" name="member_count" value="<?php echo $data['member_count']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">上课次数：</td>
                <td>
                    <input  type="text" name="class_in_count" value="<?php echo $data['class_in_count']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">余次：</td>
                <td>
                    <input  type="text" name="class_account" value="<?php echo $data['class_account']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">开始时间：</td>
                <td>
                    <input class="layui-input" name="start_time" placeholder="开始时间" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
                </td>
            </tr>
            <tr>
                <td class="label">结束时间：</td>
                <td>
                    <input class="layui-input" name="end_time" placeholder="结束时间" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
                </td>
            </tr>
            <tr>
                <td class="label">应付款：</td>
                <td>
                    <input  type="text" name="pay_account" value="<?php echo $data['pay_account']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">已付：</td>
                <td>
                    <input  type="text" name="payed" value="<?php echo $data['payed']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">欠款：</td>
                <td>
                    <input  type="text" name="pay_last" value="<?php echo $data['pay_last']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">来源：</td>
                <td>
                    <input  type="text" name="from" value="<?php echo $data['from']; ?>" />
                </td>
            </tr>
            <tr>
                <td colspan="99" align="center">
                    <input type="submit" class="button" value=" 确定 " />
                    <input type="reset" class="button" value=" 重置 " />
                </td>
            </tr>
        </table>
    </form>
</div>


<!--layui-->
<script type="text/javascript" src="__PUBLIC__/Admin/css/layui.css"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/layui.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        layui.use('laydate', function(){
            var laydate = layui.laydate;
            document.getElementById('start_time').onclick = function(){

            }
        });
    });


</script>